package com.oceansoft.mobile.weixin.entity.message.resp;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author qiur
 *
 */
public class Article {
	/**
	 * 	标题
	 */
	private String Title;

	/**
	 * 	描述
	 */
	private String Description;
	
	/**
	 * 	点击后跳转的链接
	 */
	private String Url;
	
	/**
	 * 图文消息的图片链接，支持JPG、PNG格式，较好的效果为大图640*320，小图80*80
	 */
	private String PicUrl;
	
	private Date createtime;
	
	
	public static RowMapper<Article> getMapp() {
        return new RowMapper<Article>() {
            @Override
            public Article mapRow(ResultSet rs, int rowNum) throws SQLException {
            	Article obj = new Article();
                obj.setTitle(rs.getString("title"));
                obj.setDescription(rs.getString("description"));
                obj.setUrl(rs.getString("url"));
                obj.setPicUrl(rs.getString("picUrl"));
                return obj;
            }
        };
    }

	public Article() {
	}
	


	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public String getUrl() {
		return null==Url?"":Url;
	}

	public void setUrl(String url) {
		Url = url;
	}

	public String getPicUrl() {
		return null==PicUrl?"":PicUrl;
	}

	public void setPicUrl(String picUrl) {
		PicUrl = picUrl;
	}


	
	
}
